﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Csland 中新置地项目档案管理系统</title>
    <meta name="description" content="Mocola CMS v1.0" />

    <link rel="stylesheet" href="../css/content.css" type="text/css" />
    <link rel="stylesheet" href="../css/ui.css" type="text/css" />
    <link rel="stylesheet" href="../css/sys.css" type="text/css" />
    	
    <!--[if IE]>
	    <script type="text/javascript" src="../scripts/excanvas-compressed.js"></script>	
	    <style type="text/css"> html, body { height: 100%; overflow: auto; } </style>	
    <![endif]-->
    	
    <script type="text/javascript" src="../scripts/mootools-1.2-core.js"></script>
    <script type="text/javascript" src="../scripts/mootools-1.2-more.js"></script>	
    <script type="text/javascript" src="../scripts/mocha.js"></script>
</head>
<body>
<div class="header"></div>
<div class="line1"></div>
<div style="text-align:center;">
    <form id="frmLogin">
    <table align="center" style="margin-top:15px;width:300px;">
    <tr>
        <td width="25%">用户名：</td>
        <td align="left"><input id="txtUsername" name="uname" class="inputbox" type="text" style="width:200px" /></td>
    </tr>
    <tr>
        <td width="25%">密　码：</td>
        <td align="left"><input id="txtPassword" name="upwd" class="inputbox" type="password" style="width:200px"/></td>
    </tr>
    <tr>
        <td colspan="2" valign="middle" >
        <div style="width:100%;margin-top:15px;padding-left:60px;" class="clearfix">
            <div style="float:left;">
                <input id="btnOK" type="button" class="btnzc" value="登 陆" onclick="auth()" style="width:60px"/></div>
            <div style="float:left;padding-left:60px;">
                <input id="btnCancel" type="button" class="btnzc" value="取 消" style="width:60px"/></div>
        </div>
        </td>
    </tr>
    </table>
    </form>
</div>
<script type="text/javascript" >
function auth(){
var reqInfo = new Request.HTML({url:'../ajax/AuthLogon.aspx',
onSuccess: function(html) {
if(html.item(0).nodeValue.indexOf("Fail")<0) {
window.parent.location.replace(''+html.item(0).nodeValue);
} else {
alert(html.item(0).nodeValue);
}
},
onFailure: function() {
alert("Fail(500):后台处理发生错误!");
}
}).post($('frmLogin'));
}
</script>
</body>
</html>